<?php !defined('INC') && exit('Load failure!'); ?>
{#include file='include/top.php'}

<div class="w_960">
	{#include file="block/left.php"}

	<div class="w_700 fr">
	<script src="{DIR.T}js/jquery.soChange.js"></script>
	<script>
	$(function(){ 
	//在选项卡上的运用
		$('#tab_1_c div').soChange({
			thumbObj:'#tab_1_m li',
			slideTime:0,
			thumbOverEvent:false,
			autoChange:false//自动切换为 false，默认为true
		});
	});
	</script>
		{@res table='%s_content_categroy' field='cid,name,url' where="cid=3" number='1'}
		{#foreach($res as $rs)}	
		<div class="tab_1_m" id="tab_1_m">
		<h3>{$rs['name']}</h3>
		<ul>
			{@res1 table='%s_content_categroy' field='name,url,cid' where="cid1={$rs['cid']}" number='5'}
			{#foreach($res1 as $rs1)}
			<li><a href="{DIR}{$rs1[url]}" title="{$rs1[name] code='quote'}">{$rs1[name]}</a></li>
			{#endforeach}
		</ul>
		</div>
		<div class="tab_1_c mb10" id="tab_1_c">
		{@res2 table='%s_content_categroy' field='name,url,cid' where="cid1={$rs['cid']}" number='5'}
		{#foreach($res2 as $rs2)}
		<div class="f_1" style="width:678px;overflow:hidden;">
		<ul class="list_img_1 pt10 ml10" style="_margin-left:0px;">
			{@res3.join table1='%s_content_categroy_bind' table2='%s_content' field2='image,title,url' on='id' where="t2.mid=2 and t2.status=1 and t1.cid={$rs2['cid']}" order='t2.id desc' number='12'}
			{#foreach($res3 as $rs3)}
			<li><a href="{DIR}{$rs3[url]}" title="{$rs3[title] code='quote'}"><img src="{DIR}images/?id={$rs3[image]}" width="140" height="100" class="img_1" alt="{$rs3[title] code='quote'}" /></a><a href="{DIR}{$rs3[url]}" title="{$rs3[title] code='quote'}">{$rs3[title] size='20'}</a></li>
			{#endforeach}
		</ul>
		</div>
		{#endforeach}
		</div>
		{#endforeach}
		<div class="clear_all"></div>

		{@res table='%s_content_categroy' field='cid,name,url,notes' where="cid1=2" number='1'}
		{#foreach($res as $rs)}
		<div class="w_340 fl">
			<div class="t_1"><div><h3>{$rs['name']}</h3><span>{$rs['notes']}</span><a href="{DIR}{$rs[url]}" title="了解更多" class="t_1_more">更多</a></div></div>
			<div class="f_1 pa10 mb10">
			{@res2.join table1='%s_content_categroy_bind' table2='%s_content' field2='title,url,description,date' on='id' where="t2.mid=1 and t2.status=1 and t1.cid={$rs['cid']}" order='t2.id desc' number='6'}
			{#foreach($res2 as $key=>$rs2)}
			{#if($key==0)}
			<div class="pa5">
				<a href="{DIR}{$rs2[url]}" title="{$rs2[title] code='quote'}" class="c_666 f14 h30"><strong>{$rs2[title] size='40'}</strong></a>
				<p class="line_xb pb10 h25 c_gray">{$rs2[description] size='150'}</p>
			</div>
			{#else}
			{#if($key==1)}
			<ul class="list_1 list_ico_1">
			{#endif}
			<li><a href="{DIR}{$rs2[url]}" title="{$rs2[title] code='quote'}">{$rs2[title] size='40'}</a><span>{$rs2[date] date='y-m-d'}</span></li>
			{#if($key==count($res)-1)}
			</ul>
			{#endif}
			{#endif}
			{#endforeach}
			</div>
		</div>
		{#endforeach}


		{@res table='%s_content_categroy' field='cid,name,url,notes' where="cid1=2" number='1,1'}
		{#foreach($res as $rs)}
		<div class="w_340 fr">
			<div class="t_1"><div><h3>{$rs['name']}</h3><span>{$rs['notes']}</span><a href="{DIR}{$rs[url]}" title="了解更多" class="t_1_more">更多</a></div></div>
			<div class="f_1 pa10 mb10">
			{@res2.join table1='%s_content_categroy_bind' table2='%s_content' field2='title,url,description,date' on='id' where="t2.mid=1 and t2.status=1 and t1.cid={$rs['cid']}" order='t2.id desc' number='10'}
			{#foreach($res2 as $rs2)}
			<ul class="list_1 list_ico_1">
			<li><a href="{DIR}{$rs2[url]}" title="{$rs2[title] code='quote'}">{$rs2[title] size='40'}</a><span>{$rs2[date] date='y-m-d'}</span></li>
			</ul>
			{#endforeach}
			</div>
		</div>
		{#endforeach}

	</div>

</div>

{#include file='include/bottom.php'}

</body>
</html>